package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author: ideaAdmin
 * TODO:
 * Date: 2022/1/24:16:19
 * Description:
 */
@Controller
@RequestMapping("test")
public class TestController {

    @RequestMapping("one")
    public ModelAndView test(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","使用没有maven模板的创建");
        modelAndView.setViewName("test");
        return modelAndView;
    }
}
